public ResponseModel AddLike(Like objLike) { try { ActivityProvider objActivityProvider = new ActivityProvider(_context); objActivityProvider.AddLike(objLike); ResponseModel objResponseMOdel = new ResponseModel { Message = "Successfull", StatusCode = 1 }; return(objResponseMOdel); } catch (Exception ex) { ResponseModel objResponseModel = new ResponseModel { StatusCode = 0, Message = ex.Message }; return(objResponseModel); } }