public bool PostResource([FromBody] Resource resource) { int flag = resourceRepository.AddResource(resource); if (flag == 1) { return(true); } else { return(false); } }
public bool PostResource([FromBody] Resource resource) { int flag = resourceRepository.AddResource(resource); if (flag == 1) { return(true); } else { return(false); } }