public IActionResult GetPrductCategory() { try { var categoryList = iProductCategoryType.GetAllProductCategoryType(); List <SelectListItemModel> selectListItemModel = SelectHelper.BindSelectListItem(categoryList); return(Ok(ResponseHelper.Success(selectListItemModel))); } catch (Exception ex) { LogHelper.ExceptionLog(ex.Message + " ::::: " + ex.StackTrace); return(Ok(ResponseHelper.Error(ex.Message))); } }
public IActionResult GetUserList() { try { var userList = iUser.GetAllUserListForDropDown(); List <SelectListItemModel> selectListItemModel = SelectHelper.BindSelectListItem(userList); return(Ok(ResponseHelper.Success(selectListItemModel))); } catch (Exception ex) { LogHelper.ExceptionLog(ex.Message + " ::::: " + ex.StackTrace); return(Ok(ResponseHelper.Error(ex.Message))); } }
public IActionResult GetSizeList() { try { var sizeList = iMaster.GetSize(); List <SelectListItemModel> selectListItemModel = SelectHelper.BindSelectListItem(sizeList); return(Ok(ResponseHelper.Success(selectListItemModel))); } catch (Exception ex) { LogHelper.ExceptionLog(ex.Message + " ::::: " + ex.StackTrace); return(Ok(ResponseHelper.Error(ex.Message))); } }
public IActionResult UserAddressList(DeleteUserModel deleteModel) { try { var addressList = SelectHelper.BindSelectListItem(iUser.GetAllUserAddressListForDropDown(DBHelper.ParseInt64(deleteModel.userId))); var userDetail = iUser.GetUserDetail(DBHelper.ParseInt64(deleteModel.userId)); var userOrderModel = UserHelper.BindUserOrderModel(userDetail); userOrderModel.addressList = addressList; if (userDetail != null) { return(Ok(ResponseHelper.Success(userOrderModel))); } else { return(Ok(ResponseHelper.Error(MessageConstants.DataNotFound))); } } catch (Exception ex) { LogHelper.ExceptionLog(ex.Message + " ::::: " + ex.StackTrace); return(Ok(ResponseHelper.Error(ex.Message))); } }