Ejemplo n.º 1
0
        public JsonResult Delete(DoctorDesinationViewmodel model)
        {
            int deleteIndex = 0;

            try
            {
                deleteIndex = DoctorDesignationManager.Delete(model.DoctorDesignationId);
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }


            return(deleteIndex > 0 ? Reload() : ErroResult("Failed To Delete"));
        }