Beispiel #1
0
 public async Task <int> AddNewContactNumber(AddContactNumberModel model)
 {
     try
     {
         _dbconnection.StoredProcedure = Constants.AddContactNumberStoredProcedure;
         _dbconnection.Parameters      = model;
         return(await _dapperRepository.Execute(_dbconnection));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public async Task <ActionResult> AddContactNumber([FromBody] AddContactNumberModel model)
        {
            var result = await _addressbookservice.AddNewContactNumber(model);

            return(Json(new { success = true, response = result }));
        }