public void Update(PermissionDto model) { var entity = _permissionRepository.GetById(model.Id); _permissionRepository.Update(model.MapTo(entity)); }
public void Update(PermissionDto model) { var entity = _permissionRepository.GetById(model.Id); _permissionRepository.Update(model.MapTo(entity)); }
public void Create(PermissionDto model) { _permissionRepository.Insert(model.MapTo<Permission>()); }
public void Create(PermissionDto model) { _permissionRepository.Insert(model.MapTo <Permission>()); }