Esempio n. 1
0
        public async Task <JsonResult> Add(AddPermissionDto model)
        {
            var result = await _permissionAppService.Add(model);

            OutputModel outputModel = new OutputModel();

            outputModel.Data = result;
            return(Json(outputModel));
        }
        public async Task<IResult> UpdateAsync(AddPermissionDto model)
        {

            return await _permissionService.UpdateAsync(model);
        }
 public async Task<IResult> AddAsync([FromBody] AddPermissionDto dto)
 {
     var result = await _permissionService.AddAsync(dto);
     return result;
 }
Esempio n. 4
0
 public async Task <Result> Add(AddPermissionDto dto)
 {
     return(await _permissionService.Add(_mapper.Map <Permission>(dto)));
 }