public IHttpActionResult Delete(List <NOTIFICATIONDC> objNotificationslist) { NOTIFICATIONBL objCompanie = new NOTIFICATIONBL(); try { int IsDeleted = objCompanie.Delete(objNotificationslist); return(Ok(new { IsDeleted })); } catch (Exception ex) { return(new TextResult(ex.Message, Request, ex.StackTrace)); } }
public IHttpActionResult GetAll() { NOTIFICATIONBL objNotifications = new NOTIFICATIONBL(); List <NOTIFICATIONDC> objResultList = new List <NOTIFICATIONDC>(); try { objResultList = objNotifications.LoadAll(); return(Ok(new { objResultList })); } catch (Exception ex) { return(new TextResult(ex.Message, Request, ex.StackTrace)); } }