public ActionResult <ClearCompareResponseModel> ClearFromCompare([FromBody] ClearCompareInputModel data) { ClearCompareResponseModel res = new ClearCompareResponseModel(); try { CompareBL bl = new CompareBL(DbContext); var temp = bl.DeleteCompare(data); res.data = temp; res.Message = temp.Message; res.Response = true; return(res); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(res); } }
public ActionResult <CompareListResponseModel> ViewCompare([FromBody] CompareListInputModel data) { CompareListResponseModel res = new CompareListResponseModel(); try { CompareBL bl = new CompareBL(DbContext); var temp = bl.GetCompareList(data); res.data = temp; res.Message = "Success"; res.Response = true; return(res); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(res); } }