Beispiel #1
0
 public Response <Footers> InsertFooters(Footers footers)
 {
     try
     {
         var data = _footerRepository.InsertFooters(footers);
         if (data != null && data.Any())
         {
             return(new Response <Footers>(true, "Success", data[0]));
         }
         return(new Response <Footers>(false, "Fail", null));
     }
     catch (Exception e)
     {
         _logger.Error($"InsertFooters Failed: {e.Message}\n {e.StackTrace}");
         return(new Response <Footers>(false, e.Message, null));
     }
 }