/// <summary> /// Metodo para eliminar un registro /// </summary> /// <param name="storesDto"></param> /// <returns></returns> public Response Delete(StoresDto storesDto) { try { var action = "Stores/DelStore"; var json = ServicesHelper.MethodPost(action, storesDto); if (string.IsNullOrEmpty(json)) { throw new Exception("Se ha producido un error al eliminar Articles"); } return(JsonConvert.DeserializeObject <Response>(json)); } catch (Exception) { throw new Exception("Se ha producido un error al eliminar Articles"); } }
/// <summary> /// Metodo para eliminar un articulo /// </summary> /// <param name="articleDto">Objeto para que se guardado</param> /// <returns>Mensaje de Respuesta</returns> public Response Delete(ArticlesDto articleDto) { try { var action = "Articles/DelArticles"; var json = ServicesHelper.MethodPost(action, articleDto); if (string.IsNullOrEmpty(json)) { throw new Exception("Se ha producido un error al eliminar Articles"); } return(JsonConvert.DeserializeObject <Response>(json)); } catch (Exception ex) { return(new Response() { Mensaje = "Se ha producido un error al eliminar Articles", Resultado = false }); } }