изменени при воостановлнеии сущности
This commit is contained in:
parent
908c920d26
commit
1b3e7201a7
@ -34,6 +34,7 @@ namespace SecurityDatabaseImplementation.Implementations
|
|||||||
{
|
{
|
||||||
if (exsistEntity.IsDeleted)
|
if (exsistEntity.IsDeleted)
|
||||||
{
|
{
|
||||||
|
exsistEntity = Mapper.MapToClass(model, exsistEntity, true);
|
||||||
exsistEntity.IsDeleted = false;
|
exsistEntity.IsDeleted = false;
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
return OperationResultModel.Success(Mapper.MapToClass<Access, AccessViewModel>(exsistEntity, true));
|
return OperationResultModel.Success(Mapper.MapToClass<Access, AccessViewModel>(exsistEntity, true));
|
||||||
|
@ -32,6 +32,7 @@ namespace SecurityDatabaseImplementation.Implementations
|
|||||||
{
|
{
|
||||||
if (exsistEntity.IsDeleted)
|
if (exsistEntity.IsDeleted)
|
||||||
{
|
{
|
||||||
|
exsistEntity = Mapper.MapToClass(model, exsistEntity, true);
|
||||||
exsistEntity.IsDeleted = false;
|
exsistEntity.IsDeleted = false;
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
return OperationResultModel.Success(Mapper.MapToClass<Role, RoleViewModel>(exsistEntity, true));
|
return OperationResultModel.Success(Mapper.MapToClass<Role, RoleViewModel>(exsistEntity, true));
|
||||||
|
@ -33,6 +33,7 @@ namespace SecurityDatabaseImplementation.Implementations
|
|||||||
{
|
{
|
||||||
if (exsistEntity.IsDeleted)
|
if (exsistEntity.IsDeleted)
|
||||||
{
|
{
|
||||||
|
exsistEntity = Mapper.MapToClass(model, exsistEntity, true);
|
||||||
exsistEntity.IsDeleted = false;
|
exsistEntity.IsDeleted = false;
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
return OperationResultModel.Success(Mapper.MapToClass<UserRole, UserRoleViewModel>(exsistEntity, true));
|
return OperationResultModel.Success(Mapper.MapToClass<UserRole, UserRoleViewModel>(exsistEntity, true));
|
||||||
|
@ -33,6 +33,7 @@ namespace SecurityDatabaseImplementation.Implementations
|
|||||||
{
|
{
|
||||||
if (exsistEntity.IsDeleted)
|
if (exsistEntity.IsDeleted)
|
||||||
{
|
{
|
||||||
|
exsistEntity = Mapper.MapToClass(model, exsistEntity, true);
|
||||||
exsistEntity.IsDeleted = false;
|
exsistEntity.IsDeleted = false;
|
||||||
context.SaveChanges();
|
context.SaveChanges();
|
||||||
return OperationResultModel.Success(Mapper.MapToClass<User, UserViewModel>(exsistEntity, true));
|
return OperationResultModel.Success(Mapper.MapToClass<User, UserViewModel>(exsistEntity, true));
|
||||||
|
Loading…
Reference in New Issue
Block a user