コード例 #1
0
        public IActionResult PostAsync([FromBody] WorkdsInRelationship body)
        {
            var result = crudService.Find();

            if (result == null)
            {
                return(BadRequest());
            }
            return(Ok(result));
        }
コード例 #2
0
        public async Task <bool> Add(WorkdsInRelationship worksInRelationship)
        {
            try
            {
                CrudReposiory.Add(worksInRelationship);
                return(true);
            }
            catch (Exception)
            {
                return(false);

                throw;
            }
        }
コード例 #3
0
 public void Add(WorkdsInRelationship worksInRelationship)
 {
     Console.WriteLine("helloooo");
 }