public async Task <CommonRespose> DeleteSalryDetailsById(int sId) { CommonRespose returnResponse = new CommonRespose(); var result = await _irepositorywrapper.Salary.DeleteSalryDetailsById(sId); if (result == 1) { returnResponse.Id = 1; returnResponse.Status = true; returnResponse.Message = "Deleted Succesfully! "; return(returnResponse); } else { returnResponse.Id = 0; returnResponse.Status = false; returnResponse.Message = "Deletion failed! "; return(returnResponse); } }
public async Task <CommonRespose> SaveSalaryDetails(SalaryInfoReq salaryInfoReq) { CommonRespose returnResponse = new CommonRespose(); int userAdd = await _irepositorywrapper.Salary.SaveSalaryDetails(salaryInfoReq); if (userAdd == 1) { returnResponse.Id = 1; returnResponse.Status = true; returnResponse.Message = "Saved Succesfully! "; return(returnResponse); } else { returnResponse.Id = 0; returnResponse.Status = false; returnResponse.Message = "Saved failed! "; return(returnResponse); } }
public async Task <CommonRespose> UpdateSalaryDetailsById(SalaryInfoReq salaryInfoReq) { CommonRespose returnResponse = new CommonRespose(); int userdetailsupdate = await _irepositorywrapper.Salary.UpdateSalaryDetailsById(salaryInfoReq); if (userdetailsupdate == 1) { returnResponse.Id = 1; returnResponse.Status = true; returnResponse.Message = "Updated Succesfully! "; return(returnResponse); } else { returnResponse.Id = 0; returnResponse.Status = false; returnResponse.Message = "Update failed! "; return(returnResponse); } }
public async Task <ActionResult> DeleteUserDetailsById(int userId) { CommonRespose commonRespose = await _userManger.DeleteUserDetailsById(userId); return(ObjectOk(commonRespose)); }
public async Task <ActionResult> UpdateUserDetailsById([FromBody] UserInfoReq userInfoReq) { CommonRespose commonRespose = await _userManger.UpdateUserDetailsById(userInfoReq); return(ObjectOk(commonRespose)); }
public async Task <ActionResult> DeleteSalryDetailsById(int sId) { CommonRespose commonRespose = await _salaryManger.DeleteSalryDetailsById(sId); return(ObjectOk(commonRespose)); }
public async Task <ActionResult> UpdateUserDetailsById([FromBody] SalaryInfoReq salaryInfoReq) { CommonRespose commonRespose = await _salaryManger.UpdateSalaryDetailsById(salaryInfoReq); return(ObjectOk(commonRespose)); }
public async Task <ActionResult> SaveSalaryDetails([FromBody] SalaryInfoReq salaryInfoReq) { CommonRespose commonRespose = await _salaryManger.SaveSalaryDetails(salaryInfoReq); return(ObjectOk(commonRespose)); }