public IActionResult GetProject(int ProjectID) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion WrapperProject data = new Services.ProjectUDService().GetSingleProject(ProjectID); return(Ok(data)); }
public IActionResult GetAllDeletedProjectList(int EntriesFrom, int EntriesTill) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion //ZERO (0) page number means all Projects //1 means 1-10 , 2 means 20-30 WrapperMultiProject data = new Services.ProjectUDService().GetAllDeletedProjectList(EntriesFrom, EntriesTill); return(Ok(data)); }
public IActionResult CreatProject([FromBody] WrapperProject Param) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion WrapperProject data = new Services.ProjectUDService().CreateSingleProject(Param.Project); return(Ok(data)); }
public IActionResult ArchiveProject(int ProjectID, bool isArchive) { #region Validate Token RequestResponse isAuthorized = new Authorize().RequestTokenAuth(Request); if (isAuthorized.Success == false) { return(BadRequest(isAuthorized)); } #endregion RequestResponse RequestResponse = new Services.ProjectUDService().UpdateProjectArchiveStatus(ProjectID, isArchive); if (RequestResponse.Success == false) { return(BadRequest(RequestResponse)); } return(Ok(RequestResponse)); }